package com.lzy.system.organization.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 部门
 * </p>
 *
 * @author lcc
 * @since 2023-11-22
 */
@Data
@TableName("sys_department")
@ApiModel(value = "SysDepartment对象", description = "部门")
public class SysDepartment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("部门名称")
    private String dep_name;

    @ApiModelProperty("父id")
    private Long pid;

    @ApiModelProperty("部门编号")
    private String dep_no;

    @ApiModelProperty("部门全路径")
    private String dep_name_path_full;

    @ApiModelProperty("部门id全路径")
    private String dep_id_path_full;

    @ApiModelProperty("公司id")
    private Long company_id;

    @ApiModelProperty("排序")
    private Long order_index;

}
